
import React, { useState } from "react";
import UTable from "../../../components/UTable";

const columns = [
  {
    id:'name',
    title:'标签名称',
    key:'name'
  }
]

const list = [
  {
    id:20202020,
    name:'很好'
  },
  {
    id:20202021,
    name:'一般'
  },
  {
    id:20202022,
    name:'不错'
  },
  {
    id:20202020,
    name:'糟糕'
  },
]


const operations = [
  {
    key:'add',
    name:'新增',
    method:()=>{

    }
  },
  {
    key:'update',
    name:'编辑',
    method:()=>{
      
    }
  },
  {
    key:'delete',
    name:'删除',
    method:()=>{
      
    }
  }
]

const Tags = ( ) => {
  return(
    <div className="page-container">
      <UTable 
        columnList={ columns } 
        dataSource={ list } 
        operations = { operations } 
      />
    </div>
  )
}

export default Tags;
